package com.app.TCES.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.app.TCES.domain.ST_indicators;
import com.app.TCES.domain.Student;
import com.app.TCES.domain.Teacher_Course;
import com.app.TCES.domain.Test;
import com.app.TCES.mapper.StudentMapper;
@Service
public class StudentService {
     @Autowired
	StudentMapper studentMapper;
	
    //查教师
	public List<Teacher_Course> selectC(Object object) {

		return studentMapper.selectC(object);
	}

	public void StuCGPW(Student student) {
	
		studentMapper.StuCGPW(student);
	}

	//查询学生的教师及课程(条件:stuId)
	public List<Teacher_Course> selectTeacherBy_stuId(Object object){
		
		return studentMapper.selectTeacherBy_stuId(object);
	}
	
	//获取学生评价问题内容
	public List<Test> selectStudentTest(){
		return studentMapper.selectStudentTest();
	}
	
	//学生给教师评分
	public void insertST(int tchId,Object object,double score) {
		studentMapper.insertST(tchId, object, score);
	}
	
	//通过学生查询是否已评价(stuId)
	public List<ST_indicators> selectST(Object object){
		return studentMapper.selectIndicators(object);
	}
}
